{foreach name="structloop" item=pages from=$contents}
	
		{if $pages.obj_attributes.seite_naviposition != "meta"}
			<a href="{link2 id=$pages.obj_id lang=$page_language_code}" {strip}
				{if $counter == 1 AND ($page.obj_id== $pages.obj_id OR is_in_tree($pages.obj_id))}
					class="naviactive"
				{elseif $counter == 1}
					class="navi"
				{elseif $counter > 1 AND ($page.obj_id== $pages.obj_id OR is_in_tree($pages.obj_id))}
					class="subnaviactive"
				{else}
					class="subnavi"
				{/if}
				>
				{/strip}
				&rsaquo; {$pages.obj_name_name|htmlentitiesutf8}
			</a>
			{if is_array($pages.SUBPAGES) AND ($page.obj_id== $pages.obj_id OR is_in_tree($pages.obj_id))}
				{include file="_NAVIENTRY" contents=$pages.SUBPAGES counter=$counter+1 parent_id=$pages.obj_id navitype="sub"}
			{/if}
		{/if}
	
{/foreach}
